import React, {Component} from 'react';

//React生命周期具体参考https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/

class ReactCom4 extends Component {

  constructor(props) {
    super(props);
    this.state={};
    console.log('01构造函数');
  }



  componentDidMount() {
    console.log('03组件将要挂载');
  }

  componentDidUpdate(prevProps, prevState, snapshot) {
    console.log('组件更时调用');
  }

  componentWillUnmount() {
    console.log('组件卸载时调用');
  }

  render() {
    console.log('02数据渲染render');
    return (
      <div>

      </div>
    );
  }
}

export default ReactCom4;
